﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoboTrocity;
using RoboTrocity.Code.Props;

namespace RoboTrocity {
	class Trigger {

		List<Prop> attachedProps;

		public Trigger(){
			attachedProps = new List<Prop>();
		}

		public void fireTrigger() {
			//goes through the vector of Objects, and activates them
			foreach (Prop p in attachedProps) {
				p.Activate();
			}
		}

		public void addProp(Prop prop) {
			attachedProps.Add(prop);
		}
	}
}
